
<!DOCTYPE html>
<html>
<head>[#include "../manage/common/head.html" /]
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>已卖出宝贝</h5>
					</div>
					<div class="ibox-content">
						<table
							class="table table-striped table-bordered table-hover dataTables">
							<thead>
								<tr>
									<th class="text-center">商品名称</th>
									<th class="text-center">卖出数量</th>
									<th class="text-center">商品总价</th>
								</tr>
							</thead>
							<!-- <tfoot>
                                <tr>
                                    <th>总计</th>
                                    <th></th>
                                    <th>浏览器</th>
                                </tr>
                            </tfoot> -->
							<tbody>
							</tbody>
						</table>

					</div>
				</div>
			</div>
		</div>
	</div>
	[#include "../manage/common/js.html" /]
	<script>
	$(function() {
		dt = $('.dataTables').dataTable(
			{
				"ordering" : false,
				"searching" : false,
				"info" : true,
				"bLengthChange" : false,
				"iDisplayLength": 2,
				"pagingType" : "full_numbers",
				"language" : {
					"lengthMenu" : "每页 _MENU_ 条记录",
					"zeroRecords" : "没有找到记录",
					"info" : "第 _PAGE_ 页 ( 总共 _PAGES_ 页 )",
					"infoEmpty" : "无记录",
					"infoFiltered" : "(从 _MAX_ 条记录过滤)",
					"sEmptyTable" : "表中数据为空",
					"sLoadingRecords" : "载入中...",
					"oPaginate" : {
						"sFirst" : "首页",
						"sPrevious" : "上一页",
						"sNext" : "下一页",
						"sLast" : "末页"
					}
				},
				"serverSide" : true,
				"sAjaxSource" : "${base}/manage/goods/selectSoldInfoList",
				"columns" : [
					{
						"data" : "name",
						"sWidth" : "33%"
					},
					{
						"data" : "buyCount",
						"sWidth" : "34%"
					},
					{
						"data" : "totalPrices",
						"sWidth" : "33%"
					}],
				"fnServerData" : function(sSource, aoData,
						fnCallback) {
					$.ajax({
						"dataType" : 'json',
						"type" : "POST",
						"url" : sSource,
						"data" : aoData,
						"success" : fnCallback
					});
				}
			});
		})

		function search() {
			dt.fnFilter();
		}

	</script>
</body>
</html>
